package com.foreverwin.jzymes.eap.Listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class CncProgramListener {

    private Logger logger = LoggerFactory.getLogger( CncProgramListener.class );

    @JmsListener( destination = "MES_CHANGE_SHIFT_COMMAND", containerFactory = "jmsTopicListenerContainerFactory" )
    public void cncProgram( String msg ){

        logger.info( "接收到换班指令:" + msg );
    }
}
